from enum import Enum
from dataclasses import dataclass

class QuestionType(Enum):
    ESSAY = "论文类"
    FILL_IN = "填空类"
    MULTIPLE_CHOICE = "选择类"

@dataclass
class Question:
    id: int
    text: str
    type: QuestionType = None
    metadata: dict = None  # 用于存储额外信息（如选项）

@dataclass
class Answer:
    question_id: int
    content: str
    type: QuestionType
    metadata: dict = None  # 用于存储额外信息（如文件名）

@dataclass
class ImageAnalysisResult:
    image_path: str
    analysis: str